www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Admin_UsersEmail.asp
<html> <head> <META content=ywnt,云网互动影视管理系统 name=keywords> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <title>云网互动影视6.0--会员邮件通知管理</title> <LINK href="css/css.css" type=text/css rel=stylesheet> </head> <BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0"> <!--#include file="../Conn.asp" --> <!--#include file="YWNT_TMS_inc/YWNT_TMS_Function.asp" --> <% '=================================================================================================================== '软件名称:云网影视管理系统 'Copyright (C) 2002-2007 ywnt.net All rights reserved. '产品咨询QQ:489234,2813712 '程序版权:云网互动科技有限公司 '程序开发:云网互动科技有限公司 '官方网站:http://www.ywnt.net '郑重声明: ' 1、免费版本请在程序首页保留版权信息,并做上本站LOGO友情连接,商业版本无此要求; ' 2、任何个人或组织不得在授权允许的情况下删除、修改、拷贝本软件及其他副本上一切关于版权的信息; ' 3、云网互动科技有限公司保留此软件的法律追究权利 '=================================================================================================================== Call CheckLogin("UsersEmail") frommail = NoSqlHack(Trim(Request.Form("frommail"))) tomail = NoSqlHack(Trim(Request.Form("tomail"))) mailsubject = NoSqlHack(Trim(Request.Form("mailsubject"))) mailbody = NoSqlHack(Trim(Request.Form("mailbody"))) sub formcheck() if mailsubject="" then call Admin_ShowErr("<li>邮件标题不能为空!</li>","javascript:history.go(-1);",0) end if if mailbody="" then call Admin_ShowErr("<li>邮件内容不能为空!</li>","javascript:history.go(-1);",0) end if end sub sub SendSave() if tomail="" then call Admin_ShowErr("<li>收件人不能为空!</li>","javascript:history.go(-1);",0) end if call formcheck() Set JMail = Server.CreateObject("JMail.Message") JMail.MailServerUserName = GetConfig("MailUser") JMail.MailServerPassword = GetConfig("MailPassword") JMail.Charset ="gb2312" JMail.ContentType = "text/html" JMail.from = frommail JMail.AddRecipient(""&tomail&"") JMail.Subject = mailsubject JMail.Body = mailbody JMail.Priority = 3 JMail.Send(GetConfig("MailServer")) JMail.Close() Set JMail=nothing Call AddLog("发送用户邮件"&Request.Form("tomail"),7) call Admin_ShowErr("<li>发送用户邮件成功!</li>","Admin_UsersEmail.asp",1) end sub sub RepeatedSave() call formcheck() Set JMail = Server.CreateObject("JMail.Message") JMail.MailServerUserName = GetConfig("MailUser") JMail.MailServerPassword = GetConfig("MailPassword") JMail.Charset ="gb2312" JMail.ContentType = "text/html" JMail.from = GetConfig("MailUser") sql="select UsersEmail from YWNT_TMS_Users" set rs=conn.execute(sql) do while not rs.eof JMail.AddRecipient(""&rs("UsersEmail")&"") RS.MoveNext Loop rs.close JMail.Subject = mailsubject JMail.Body = mailbody JMail.Priority = 3 JMail.Send(GetConfig("MailServer")) JMail.Close() Set JMail=nothing Call AddLog("群发用户邮件",7) call Admin_ShowErr("<li>群发用户邮件成功!</li>","Admin_UsersEmail.asp",1) end sub%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <tbody> <tr> <td class=xingmu>会员邮件通知管理</td> </tr> <tr> <td class="hback"> <a href="Admin_UsersEmail.asp?action=Send">会员邮件发送</a> | <a href="Admin_UsersEmail.asp?action=Repeated">会员邮件群发</a> </td> </tr> </tbody> </table> <%Action=Trim(request("Action")) Select Case Action Case "Repeated" call Repeated() Case "RepeatedSave" call RepeatedSave() Case "SendSave" call SendSave() Case else call Send() End Select sub Send()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <form name="sendmail" action="Admin_UsersEmail.asp?action=SendSave" method="post"> <tbody> <tr> <td colspan="2" class=xingmu>邮件发送</td> </tr> <tr> <td height=32 align="right" class="hback">发送人邮箱:</td> <td height=7 class="hback"><input name="frommail" type="text" id="frommail" value="<%=GetConfig("MailUser")%>" size="40"></td> </tr> <tr> <td height=32 align="right" class="hback">收件人邮箱:</td> <td height=7 class="hback"><input name="tomail" type="text" id="tomail" size="40"></td> </tr> <tr> <td width="21%" height=32 align="right" class="hback">邮件标题:</td> <td height=7 class="hback"><input name="mailsubject" type="text" id="mailsubject" size="40"></td> </tr> <tr> <td height=32 align="right" class="hback">邮件内容:</td> <td height=16 class="hback"><textarea name="mailbody" cols="40" rows="5" id="mailbody"></textarea></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input type="submit" name="Submit" value="发 送"></td> </tr> </tbody> </form> </table> <%end sub sub Repeated()%> <table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0> <form name="sendmail" action="Admin_UsersEmail.asp?action=RepeatedSave" method="post"> <tbody> <tr> <td colspan="2" class=xingmu>群发邮件给所有会员</td> </tr> <tr> <td height=32 align="right" class="hback">发送人邮箱:</td> <td height=7 class="hback"><input name="textfield2" type="text" value="<%=GetConfig("MailUser")%>" size="40"></td> </tr> <tr> <td width="21%" height=32 align="right" class="hback">邮件标题:</td> <td height=7 class="hback"><input name="mailsubject" type="text" id="mailsubject" size="40"></td> </tr> <tr> <td height=32 align="right" class="hback">邮件内容:</td> <td height=16 class="hback"><textarea name="mailbody" cols="40" rows="5" id="mailbody"></textarea></td> </tr> <tr> <td height=32 colspan="2" align="center" class="hback"><input type="submit" name="Submit" value="发 送"></td> </tr> </tbody> </form> </table> <%end sub call connclose()%> </BODY></HTML>